All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.j3d.BranchGroup

java.lang.Object
   |
   +----javax.media.j3d.SceneGraphObject
           |
           +----javax.media.j3d.Node
                   |
                   +----javax.media.j3d.Group
                           |
                           +----javax.media.j3d.BranchGroup

public class BranchGroup
extends Group
The BranchGroup serves as a pointer to the root of a scene graph branch; BranchGroup objects are the only objects that can be inserted into a Locale's set of objects.


Variable Index

 o ALLOW_DETACH
For BranchGroup nodes, specifies that this BranchGroup allows detaching from its parent.

Constructor Index

 o BranchGroup()

Method Index

 o compile()
Compiles the source BranchGroup associated with this object and creates and caches a compiled scene graph.
 o detach()
Detaches this BranchGroup from its parent.
 o pickAll(PickShape)
Returns an array referencing all the items that are pickable below this BranchGroup that intersect with PickShape.
 o pickAllSorted(PickShape)
Returns a sorted array of references to all the Pickable items that intersect with the pickShape.
 o pickAny(PickShape)
Returns a reference to any item that is Pickable below this BranchGroup which intersects with pickShape.
 o pickClosest(PickShape)
Returns a SceneGraphPath which references the pickable item which is closest to the origin of pickShape.

Variables

 o ALLOW_DETACH
 public static final int ALLOW_DETACH
For BranchGroup nodes, specifies that this BranchGroup allows detaching from its parent.

Constructors

 o BranchGroup
 public BranchGroup()

Methods

 o compile
 public final void compile()
Compiles the source BranchGroup associated with this object and creates and caches a compiled scene graph.

 o detach
 public final void detach()
Detaches this BranchGroup from its parent.

 o pickAll
 public final SceneGraphPath[] pickAll(PickShape pickShape)
Returns an array referencing all the items that are pickable below this BranchGroup that intersect with PickShape. The resultant array is unordered.

Parameters:
origin - The origin of the ray
direction - the direction of the ray
See Also:
SceneGraphPath, pickAll
 o pickAllSorted
 public final SceneGraphPath[] pickAllSorted(PickShape pickShape)
Returns a sorted array of references to all the Pickable items that intersect with the pickShape. Element [0] references the item closest to origin of PickShape successive array elements are further from the origin

See Also:
SceneGraphPath, pickAllSorted, PickShape
 o pickClosest
 public final SceneGraphPath pickClosest(PickShape pickShape)
Returns a SceneGraphPath which references the pickable item which is closest to the origin of pickShape.

See Also:
SceneGraphPath, pickClosest, PickShape
 o pickAny
 public final SceneGraphPath pickAny(PickShape pickShape)
Returns a reference to any item that is Pickable below this BranchGroup which intersects with pickShape.

See Also:
SceneGraphPath, pickAny, PickShape

All Packages  Class Hierarchy  This Package  Previous  Next  Index